<template>
    <div>
        <maskView>
            <h4>{{title}}</h4>
            <p>
                <slot></slot>
            </p>
            <div class="btn-group">
                <button type="button" class="btn btn-danger" @click="$emit('sure')">确定</button>
                <button type="button" class="btn btn-dark" @click="$emit('close')">取消</button>
            </div>
        </maskView>
    </div>
</template>

<script>
import maskView from "@/views/maskView";
export default {
    name: "editConfirm",
    props: {
        title: {
            type: String,
            required: false,
            default: "确定吗"
        }
    },
    components: {
        maskView
    }
};
</script>